﻿using Abp.Application.Services.Dto;
using FwProject.Comm.ExcelUtil;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace FwProject.Restaurant.Dto
{
    /// <summary>
    /// 餐厅Excel导入类
    /// </summary>
    [DisplayName("餐厅导入模板")]
    public class ExcelImportRetaurant
    {
        [Display(Name = "餐厅名称")]
        [DisplayName(displayName:"餐厅名称")]
        [ExcelDateMember]
        public string RestaurantName { get; set; }

        [Display(Name = "联系人")]
        [DisplayName(displayName: "联系人")]
        [ExcelDateMember]
        public string RestaurantContact { get; set; }

        [Display(Name = "联系电话")]
        [DisplayName(displayName: "联系电话")]
        [ExcelDateMember]
        public string Mobile { get; set; }

        [Display(Name = "司机")]
        [DisplayName(displayName: "司机")]
        [ExcelDateMember]
        public string DriverName { get; set; }

        [Display(Name = "型号")]
        [DisplayName(displayName: "型号")]
        [ExcelDateMember]
        public string TypeNumberName { get; set; }

        [Display(Name = "单价")]
        [DisplayName(displayName: "单价")]
        [ExcelDateMember]
        public string Price { get; set; }

        [Display(Name = "餐厅地址")]
        [DisplayName(displayName: "餐厅地址")]
        [ExcelDateMember]
        public string RestaurantAdderss { get; set; }

        [Display(Name = "押金收取日期")]
        [DisplayName(displayName: "押金收取日期")]
        [ExcelDateMember]
        public string DepositDate { get; set; }

        [Display(Name = "押金金额")]
        [DisplayName(displayName: "押金金额")]
        [ExcelDateMember]
        public string Deposit { get; set; }

        [Display(Name = "收费方式")]
        [DisplayName(displayName: "收费方式")]
        [ExcelDateMember]
        public string ChargeWay { get; set; }

        [Display(Name = "结算方式")]
        [DisplayName(displayName: "结算方式")]
        [ExcelDateMember]
        public string BalanceWay { get; set; }

        [Display(Name = "结算周期")]
        [DisplayName(displayName: "结算周期")]
        [ExcelDateMember]
        public string BalanceCycle { get; set; }
    }


    public class ExcelImportRetaurantSuccess
    {
        /// <summary>
        /// 成功数
        /// </summary>
        public int SuccessCount { get; set; }

        /// <summary>
        /// 失败数
        /// </summary>
        public int FailureCount { get; set; }

        /// <summary>
        /// 失败原因
        /// </summary>
        public string FailureMessage { get; set; }

    }
}
